// @ts-ignore
/* eslint-disable */
import request from '@/request'

/** addOrDecreaseScore POST /api/score/addScore */
export async function addOrDecreaseScoreUsingPost(
  body: API.AddOrDecreaseScoreRequest,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponseLong_>('/api/score/addScore', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  })
}

/** deleteScore POST /api/score/deleteScore */
export async function deleteScoreUsingPost(
  body: API.DeleteRequest,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponseBoolean_>('/api/score/deleteScore', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  })
}

/** getScoreByPage POST /api/score/getScoreByPage */
export async function getScoreByPageUsingPost(
  body: API.QueryScoreRequest,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponsePageScoreManageVo_>('/api/score/getScoreByPage', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  })
}

/** getUserScoreAnalyzeVo POST /api/score/getUserScoreAnalyzeVo */
export async function getUserScoreAnalyzeVoUsingPost(
  body: API.QueryScoreRequest,
  options?: { [key: string]: any }
) {
  return request<API.PageUserScoreAnalyzeVo_>('/api/score/getUserScoreAnalyzeVo', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  })
}

/** updateScore POST /api/score/updateScore */
export async function updateScoreUsingPost(
  body: API.UpdateScoreRequest,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponseBoolean_>('/api/score/updateScore', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  })
}
